package com.lw.system.dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;

import com.lw.common.core.dao.BaseDAO;
import com.lw.system.model.User;

@Mapper
public interface UserMapper extends BaseDAO<User, String> {
	public User login(User u);

	public User findUserByLoginName(String loginName);

	public List<User> findUserAndRoles(User u);

	public List<User> list();

	public int countUsers(User u);

}